package top.maof.book.model;

import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;

@Data
@TableName("book_info")
public class BookInfo {

    @TableId(type = IdType.AUTO)
    private Integer id;

    // 点击数
    private Integer clickNum;

    //收藏数
    private Integer collectionNum;

    //转发数
    private Integer forwardNum;

    // 点赞数
    private Integer likesNum;

    private Integer bookId;

    // 评分
    private Double score;

    @TableField(fill = FieldFill.INSERT)
    private Long insertTime;

    @TableField(fill = FieldFill.INSERT_UPDATE)
    private Long updateTime;
}
